﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Service.Socket;

namespace ConsoleWeb
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();
        }
        public void Configure(IApplicationBuilder app)
        {
            app.UseMvc(s =>
            {
                s.MapRoute("default", "api/{action}/{id?}");
            });
            //app.Run(context =>
            //{
            //    return context.Response.WriteAsync("Hello world");
            //});
        }
    }
}